package com.denlaku.longan.service;

import com.denlaku.longan.qo.DataOriginQuery;
import com.denlaku.longan.qo.Query;
import com.denlaku.longan.vo.DataOrigin;

import java.util.List;

/**
 * @author tianx
 */
public interface DataOriginService {
	int add(DataOrigin dataOrigin);

	int update(DataOrigin dataOrigin);

	int delete(Query query);

	boolean test(DataOrigin dataOrigin, String flag);

	List<DataOrigin> list(DataOriginQuery query);

	DataOrigin get(Query query);

	String getPassword(Query query);

	/**
	 * 清理tag
	 *
	 * @param tenantId 租户ID
	 * @param tagId 标签ID
	 */
	void clearTag(Long tenantId, Long tagId);
}
